<?php
/*
Template Name: Links
*/
?>
<?php get_header(); ?>
  <div class="grid_8" id="main">
  <?php while (have_posts()) : the_post(); ?>
  	<div class="grid_8 alpha omega post">
  		<div class="grid_7 alpha" id="title"><h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2></div>
    		<div class="grid_1 omega comment-count" ><?php comments_number('0', '1', '%'); ?></div>
    		<div class="grid_7 alpha postdata">Written on: <span class="datetime"><?php the_time('m-d-y') ?></span> &#183; Posted in: <span class="post-category"><?php the_category( ","); ?></span></div>
    	<div class="grid_8 alpha omega content"><?php the_content('Continue reading...'); ?></div>
        <div class="grid_8 alpha omega post-tags"><?php the_tags('Tags: ', ', ', ''); ?>
        <h3>Links</h3>				
				<ul>			
					<?php wp_list_bookmarks('title_before=<h2>&title_after=</h2>') ?>		
				</ul>
			<?php wp_link_pages(); ?>
			<?php edit_post_link('Edit', '<p>', '</p>'); ?>
        </div>
    </div>
    <div class="grid_4 alpha previous-link"><?php previous_post_link('&laquo; %link (last)') ?></div>
    <div class="grid_4 omega next-link"><?php next_post_link('(new) %link &raquo;') ?></div>
    <div class="grid_8 alpha omega" id="comments"><?php comments_template(); ?></div>
    <?php endwhile; ?>
  </div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>